//
//  Util.h
//  APL_PJ
//
//  Created by zzl on 13-12-19.
//  Copyright (c) 2013年 zzl. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
@interface Util : NSObject

+(NSString*)GetUUID;

+(NSString *) FormartTime:(NSDate*) compareDate bfull:(BOOL)bfull;

+(NSString*)MakeSRID:(NSString*)sender recver:(NSString*)recver;

+(NSString*)GetFileName:(NSString*)fullpath;

+(NSString*)GetPath:(NSString*)fullpath;

+(NSString*)MakeFileName:(NSString*)extName;//

+(NSString*)makeVoiceFuallPath;

+(NSString*)makeJPGImgFuallPath:(int)i;

//缩放图片
+(CGSize)scaleIMG:(CGSize)showsize orgImgSize:(CGSize)orgImgSize;

+(UIImage*)scaleToSize:(UIImage*)orgimng showsize:(CGSize)showsize;


//转换AV的错误信息为字符串
+(NSString*)convertAVErr:(NSError*)error;


//计算2点的坐标距离,以及坐标方位
//posBetween = 0 ==> 未确定出方位
//posBetween = 1 ==> 东北
//posBetween = 2 ==> 东南
//posBetween = 3 ==> 西北
//posBetween = 4 ==> 西南
//比如,返回5000, posBetween =1 表示latlngA在latlngB的东北5000米处,
+(double)getTwoPointDist:(CLLocationCoordinate2D) latlngA latlngb:(CLLocationCoordinate2D)latlngB posBetween:(int*)posBetween;

//生成七牛的小图URL
+(NSString*)makeSmallImgURL:(NSString*)k;

//生成七牛的小图URL
+(NSString*)makeBigImgURL:(NSString*)k;

//base64 to number
//比如 NTMxZmQ2NDNlNGIwYjMwODA5NzdiZjkw ==>

+(NSString*)ObjidNumber:(NSString*)Objid;


@end




